package cc.wsyw126.java.test;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/**
 * Created by junpeng.yang on 16/10/8.
 */
public class LambdaSimpleLogger {
    private static final Logger logger = Logger.getLogger(LambdaSimpleLogger.class);

    public static void main(String[] args) {
//        PropertyConfigurator.configure("/Users/yangdp/Documents/workspace/GitWsyw126/java/src/log4j.properties");//加载.properties文件
        // System.out.println("This is println message.");

        // 记录debug级别的信息
        logger.debug("This is debug message.");
        // 记录info级别的信息
        logger.info("This is info message.");
        // 记录error级别的信息
        logger.error("This is error message.");

    }
}
